<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="/common/include.jsp"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>添加帮助信息</title>
		<jsp:include page="../../../common/head.jsp">
			 <jsp:param name="_useCalendar" value="true"/>
		</jsp:include>

		<script language="javascript">
			//提交完成发布操作
			function doSubmit(){
				//把获取到的FCKEditor中的内容传给隐藏域
				var oEditor = FCKeditorAPI.GetInstance("fckeditor");  
				document.getElementById("helpContent").value=oEditor.GetXHTML(true);
				var objarr = new Array(
				["help.helpTitle","帮助标题","notEmpty",""],
				["help.helpTitle","帮助标题","max","String:200"]
				);
				if(xj.CheckAll(objarr))
				{
					if(confirm("确认保存？"))
					{
						document.form1.target="_self";
						document.form1.action="addHelp.do";
		    			document.form1.submit();
					}
				}
			}
		</script>
	</head>
	<body>
		<form name="form1" action="addHelp.do" method="post" enctype="multipart/form-data">
			<input type="hidden" name="help.funcId" value="${param.funcId}" />
			<!-- 删除标志 -->
			<input type="hidden" name="help.state" value="A" />
			<div id="body_div">
				<w:ShowTitle name="添加帮助信息">
					<w:TitleButton funcName="保存" onClickFunction="doSubmit()" urlImg="${ctx}/images/main/save.png" funcType="link" />
				</w:ShowTitle>
			<div id="body_content">		
			<table width="99%">
				<tr>
					<td  class="right_align">
						帮助标题
					</td>
					<td  class="left_align" colspan="3">
						<input name="help.helpTitle" type="text" size="80"/>
					</td>
				</tr>
				<tr>
					<td class="right_align">
						关键字
					</td>
					<td class="left_align">
						<input name="help.keyWord" type="text" size="80"/>
					</td>
					<td class="right_align" width="10%">帮助类别</td>
					<td class="left_align">
			               <w:select name="help.helpType" onclick="return false;" styleId="helpType">
			               		<w:option optionLabel="请选择" optionValue=""></w:option>
								<w:option optionLabel="功能点说明" optionValue="功能点说明"></w:option>
								<w:option optionLabel="常见问题" optionValue="常见问题"></w:option>
							</w:select>
					</td>
				</tr>
				<tr>
					<td class="right_align" height="550">
						内容&nbsp;&nbsp;
					</td>
					<td colspan="3" class="left_align" valign="top">
						<!-- 添加FCK -->
						<FCK:editor instanceName="fckeditor" value=" " height="540"></FCK:editor>
						<!-- 信息内容 -->
						<input type="hidden" name="help.helpContent" value="" id="helpContent" />
					</td>
				</tr>
			</table>
			</div>
		</div>
		</form>
	</body>
</html>